package com.lf.dao;

import com.lf.pojo.LagouAuthCode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.ZonedDateTime;
import java.util.List;

public interface AuthCodeDao extends JpaRepository<LagouAuthCode,Integer> {

    List<LagouAuthCode> findAllByEmailAndExpiretimeAfterOrderByExpiretimeDesc(String email, ZonedDateTime expiretime);

}